LassoScript Utility
Basics Browse Detail

[Date->DayofWeek]

Tag Link [Date->DayofWeek] Category Date
Type Member Source Available No
Support Preferred Version 6.0
Change Unchanged Data Source Any
Output Type String, Integer Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0

Description

[Date->DayofWeek] returns the number of the day of the week (1=Sunday, 7=Saturday) for a specified Lasso date cast using the [Date] tag.

An optional -Short parameter returns an abbreviated English day name (e.g. "Sun") and an optional -Long parameter returns the full English day name (e.g. "Sunday").

Syntax

[(Date)->DayofWeek]
[(Date)->(DayofWeek: -Short)]
[(Date)->(DayofWeek: -Long)]

Parameters

Optional Parameters
-Short Returns an abbreviated English day name.
-Long Returns a full English day name.

Examples

To return the day of week number for a date:

The example below determines the day of week number for the date 8/29/2002, which is 5 for Thursday.

[(Date:'8/29/2002')->DayofWeek]

5